<?php


if (empty($_SESSION['username'])){
    die("<script>window.location.href='index.php';</script>");
}